import request from 'request'
// 得到
export function getRoleList (params) {
  return request({
    method: 'get',
    url: '/sys/role',
    params
  })
}
// 删除 DELETE
export function delRoleList (id) {
  return request({
    method: 'DELETE',
    url: '/sys/role/' + id
  })
}
// 增加
export function addRoleList (data) {
  return request({
    method: 'POST',
    url: '/sys/role',
    data
  })
}
// 得到员工详情
export function reviseRoleList (id) {
  return request({
    url: '/sys/role/' + id
  })
}
// 修改员工详情
export function setRoleList (id, data) {
  return request({
    method: 'PUT',
    url: '/sys/role/' + id,
    data
  })
}
